package com.sz.app.edi.web.security;

import com.sz.common.core.service.AbstractPrincipal;
import com.sz.common.core.service.role.MembershipType;

/**
 * Function: EdiProcessPrincipal <br>
 * Author: hpeng.wang <br>
 * Date: 2017-06-23 06:13:00
 */
public class EdiProcessPrincipal extends AbstractPrincipal {

    public EdiProcessPrincipal(int domainId, int accountId, String accountName) {
        super(domainId,accountId,accountName);
        this.setPreferredLanguage("zh-CN");
    }

    @Override
    public MembershipType getMembershipType() {
        return MembershipType.USER;
    }

    @Override
    protected void loadRoles() {

    }

    @Override
    protected void loadPermissions() {

    }

    @Override
    public boolean isRoot() {
        return true;
    }

    @Override
    public boolean isAdmin() {
        return false;
    }
}
